package com.cy.system.mapper;

import java.util.List;
import java.util.Map;

import com.cy.system.entity.User;
import com.cy.system.entity.UserRole;

public interface UserMapper {
	public int delUserByAccountId(int accountId);

	public int addUser(User user);
	
	public int updateUser(User user);
	
	public User getUserByAccountId(int accountId);
	
	public User getUserByUserId(int userId);
	
	public int setUserRoleIds(List<UserRole> userRoleList);
	
	public List<Integer> getUserRoleIds(int userId);
	
	public List<User> getAllUser();
	
	public List<Map> getAllUserMap();
}
